package de.mhus.lib.mandala.tag;

import de.mhus.lib.mandala.Response;
import de.mhus.lib.mandala.attributes.BooleanAttribute;

public class BindVisible extends TagBindData {

	private BooleanAttribute bindVisible;

	public BindVisible(BooleanAttribute bindVisible) {
		this.bindVisible = bindVisible;
	}

	@Override
	public void doRender(Response out, String name, String type) {
		out.print("visible:");
		getBindVisible().renderBooleanExpression(out);
	}

	public BooleanAttribute getBindVisible() {
		return bindVisible;
	}

	public void setBindVisible(BooleanAttribute bindVisible) {
		this.bindVisible = bindVisible;
	}

}
